<template>
  <div class="recommend">
    <div v-for="item in recommends">
      <a :href="item.link">
        <img :src="item.image" class="img"/>
        <div class="item-title">{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'HomeRecommendView',
    props: {
      recommends: {
        type: Array,
        default() {
          return [];
        }
      }
    }
  };
</script>

<style scoped>
  .recommend {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
    border-bottom: #eee solid 10px;
  }

  .img {
    height: 70px;
    width: 70px;
  }

  .item-title {
    margin-top: 10px;
    text-align: center;
    color: #666666;
  }

</style>
